﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="CommunityMonitorSrhForm.aspx.cs" Inherits="App_Search_CommunityMonitorSrhForm"
    Title="社区监控中心" %>

<%@ Import Namespace="Shpm.App.Search.Bean" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="javascript">
    function popup(id){

        window.open('../Search/MonitorDetail.aspx?GROUP_ID='+id,'MonitorDetail','scrollbars,resizable')
    }
    function playerCctv(ipAddress, channel) {
        var NetClientX = document.getElementById("NetClientX");
        NetClientX.Stop(NetClientX.Selected);
        NetClientX.SetSinglePlayer(NetClientX.Selected, channel, ipAddress);
		NetClientX.real_PlayStream(NetClientX.Selected);
    }

    function onPlayerClick(ipAddress, channel) {
        playerCctv(ipAddress, channel);

        for(var i=0; i<document.getElementById("monitorAddress").length; i++) {
            
            var val = document.getElementById("monitorAddress").options[i].value;

            var data = val.split(",");

            if( data.length>=2 && data[0]==ipAddress && data[1]==channel ) {
                document.getElementById("monitorAddress").selectedIndex = i;
                break;
            }
        }
    }

    function makeupCctv(mapObj, mapInfo) {
        // 摄像头ICON大小        
        var cctvWidth = 38;
        var cctvHeight = 22;

        // 计算地图控件的左上角绝对坐标
        var mapObjX = mapObj.getClientRects()[0].left-document.body.getClientRects()[0].left;
        var mapObjY = mapObj.getClientRects()[0].top-document.body.getClientRects()[0].top;

        // 读取当前区域图摄像头点位
        CommonAjaxUtils.FindByCctvOfMap(mapInfo.Row, mapInfo.Col, 
            function(request) {
                var dataList = request.value;

                for(var i=0; dataList!=null && i<dataList.length; i++) {
                    var cctvBean = dataList[i];

                    var cctvObj = document.createElement("IMG");

                    // 计算得到当前地图中摄像头的客户区坐标
                    //      (cctvBean.absPosX, cctvBean.absPosY) 摄像头的总地图坐标
                    //      mapInfo.offsetX, mapInfo.offsetY   当前区域地图相对于总地图的偏移量
                    //      -cctvWidth/2, -cctvHeight/2 以ICON的中心位置对齐坐标
                    var clientX = cctvBean.AbsPosX + mapObjX*0 - mapInfo.OffsetLeft - cctvWidth/2;
                    var clientY = cctvBean.AbsPosY + mapObjY*0 - mapInfo.OffsetTop - cctvHeight/2;

                    cctvObj.src = "../../images/map/camera.gif";
                    cctvObj.style.position = "absolute";
                    cctvObj.style.left = clientX;
                    cctvObj.style.top = clientY;
                    cctvObj.border = "0";
                    cctvObj.title = cctvBean.Name + " ("+cctvBean.AbsPosX+","+cctvBean.AbsPosY+") - "+cctvBean.IpAddress+","+cctvBean.Channel;

                    var lnkObj = document.createElement("A");
                    lnkObj.href = "javascript:onPlayerClick('"+cctvBean.IpAddress+"', "+cctvBean.Channel+")";
                    lnkObj.appendChild(cctvObj);

                    mapObj.appendChild(lnkObj);
                }
            }
        );
    }

    function removeCctv(mapObj) {
        while( mapObj.hasChildNodes() ) {
            mapObj.removeChild(mapObj.childNodes[0]);
        }
    }

    function entryMap(row, col) {
        // 按行列读取区域图信息
        CommonAjaxUtils.GetCommunityMapByPos(row, col,
            function callbackGetMap(request) {
                var mapInfo = request.value;
                
                // 区域图读取失败退出处理
                if( mapInfo==null ) return ;
                
                // 隐藏总平图
                var fullImgObj = document.getElementById("mapFull");
                fullImgObj.style.display = 'none';

                // 显示区域图
                var sectionImgObj = document.getElementById("mapSection");
                sectionImgObj.style.backgroundImage = "url("+mapInfo.MapUrl+")";
                sectionImgObj.style.display = 'block';

                // 移除摄像头
                removeCctv(sectionImgObj);
                
                // 安装摄像头
                makeupCctv(sectionImgObj, mapInfo);
            }
        );
    }

    function outerMap() {
        var sectionImgObj = document.getElementById("mapSection");
        var fullImgObj = document.getElementById("mapFull");
        
        sectionImgObj.style.display = 'none';
        fullImgObj.style.display = 'block';
    }

    function getMonitorObject(id) {
        var monObj = window.createPopup();

        // 获得小监控窗口监控信息
        var NetClientX = document.getElementById("NetClientX");
        var channel = NetClientX.GetPlayerChannel(NetClientX.Selected);
        var ipAddress = NetClientX.GetPlayerServer(NetClientX.Selected);

        // 设置弹出窗口监控信息
        var netClientX = monObj.document.createElement("OBJECT");
        netClientX.id = 'NetClientX1';
        netClientX.classid = 'CLSID:DF96697B-C91A-4DF6-8EA1-DC0CF61FCF42';
        netClientX.height = '100%';
        netClientX.width = '100%';
        monObj.document.body.appendChild(netClientX);

        // 加载页面时初始化摄像头
        var pOnloadFunc = function(){ 
            netClientX.PlayerCount=1;
            netClientX.InitNetClient();	
            netClientX.SetSinglePlayer(netClientX.Selected, channel, ipAddress);
		    netClientX.real_PlayStream(netClientX.Selected);
        }

        // 退出页面时停止摄像头
        var pOnunloadFunc = function(){ 
            netClientX.Stop(1);
        }

        monObj.document.parentWindow.attachEvent("onload", pOnloadFunc);
        monObj.document.parentWindow.attachEvent("onunload", pOnunloadFunc);
        
        // 返回弹出窗口对象
        return monObj;
    }

    function showMonitor() {
        var clientWidth = 800;
        var clientHeight = 600;

        var left = (window.screen.width-clientWidth)/2;
        var top = (window.screen.height-clientHeight)/2;

        var monObj = getMonitorObject();
        monObj.show(left, top, clientWidth, clientHeight);
    }

    function alarmTable() {
        var alarmObj = document.getElementById("alarmTable");
        
        if( alarmObj.style.color=='#ffffff' ) {
            alarmObj.style.background = '#ffffff';
            alarmObj.style.color = '#000000';
        }
        else {
            alarmObj.style.background = '#c61d22';
            alarmObj.style.color = '#ffffff';
        }
        
        setTimeout("alarmTable()", 1500);
    }
    function wirelessTable() {
        var alarmObj = document.getElementById("wirelessTable");
        
        if( alarmObj.style.color=='#ffffff' ) {
            alarmObj.style.background = '#ffffff';
            alarmObj.style.color = '#000000';
        }
        else {
            alarmObj.style.background = '#c61d22';
            alarmObj.style.color = '#ffffff';
        }
        
        setTimeout("wirelessTable()", 1500);
    }
    
    var pOnloadFunc = function() {
        document.body.detachEvent("onload", pOnloadFunc);

        setTimeout("alarmTable()", 1500);
setTimeout("wirelessTable()", 1500);
        var NetClientX = document.getElementById("NetClientX");
        // 设定播放器数量
        NetClientX.PlayerCount=1;
        // 初始化播放器
		NetClientX.InitNetClient();	
    }
    
    var pOnunloadFunc = function() {
        var NetClientX = document.getElementById("NetClientX");
        NetClientX.Stop(1);
    }
    
    function onMonitorChange() {
        var val = document.getElementById("monitorAddress").value;

        var data = val.split(",");

        if( data.length>=4 ) {
            var ipAddress = data[0];
            var channel = data[1];
            var row = data[2];
            var col = data[3];
            
            entryMap(row, col);
            playerCctv(ipAddress, channel);
        } else {
            outerMap();
        }
    }
    
    function onNotifyFloatBarChange(isIconic) {
        // document.getElementById("NetClientX").style.display = isIconic?"block":"none";
        document.getElementById("NetClientX").style.visibility = isIconic?"visible":"hidden";
        document.getElementById("monitorAddress").style.visibility = isIconic?"visible":"hidden";
        document.getElementById("<%=DrpGroup.ClientID %>").style.visibility=isIconic?"visible":"hidden";
    }

    window.attachEvent("onload", pOnloadFunc);
    window.attachEvent("onunload", pOnunloadFunc);
    /////////////////////
     getNewMessage();            
function getNewMessage() {
            var e;            
            try {
                CommonAjaxUtils.FindAlarm(bindCallBackResult_Message);
          
		    }
            catch(e) {
                alert('getNewMessage: '+e.message);
            }
        }
        var page_TimerID = null;
        function bindCallBackResult_Message(response) {    
            try {              
                var targetData = response.value;               		    		        		        		        
                var msgTable;
           
    	        // refresh top tool bar
	            if (targetData != null 
	                && typeof(targetData) == "object" 
	                ) {
	           
	                 msgTable = document.getElementById("alarmTable");
	                if(targetData.length > 0)
	                {
	             
	                    
	                    bindMsgTable(msgTable,targetData);
                        
	                }
	                else
	                {
	                
	                    if(msgTable != null)
			            {
    			       
			              for(var i=msgTable.rows.length - 1; i >= 0; i--) {				
			                msgTable.deleteRow(i);				
		                    }  
			            }
	                }
	     page_TimerID = setTimeout("getNewMessage()", 2000);  
	            }
	
	        }
            catch(e) {
                alert('bindCallBackResult_Message'+e.message);
            }
        }
           function stopGlitter(){
          
            if (page_TimerID != null && !isNaN(page_TimerID)) {
                window.clearTimeout(page_TimerID);
                page_TimerID = null;    
            }
        }
        function bindMsgTable(objTable,objData) { 
            if (objData == null || objTable == null)
             { 
            	
		    
                return; 
             }
                  										
		    // del rows                        
		    for(var i=objTable.rows.length - 1; i >= 0; i--) {				
			    objTable.deleteRow(i);				
		    }

            for(var i = 0; i < objData.length; i++) {                      
                var userID = objData[i].UserID;
                   
                var beginTime = objData[i].BeginTime;
                var endTime = objData[i].EndTime;
                var comments = objData[i].Comments;
                var zoneScript = objData[i].ZoneScript;
                var zoneType = objData[i].ZoneType;
                var receiveNo=objData[i].ReceiveNo
                
                var elementRow = objTable.insertRow(objTable.rows.length);
		        elementRow.id = "msgRow" + i;
		        
		        //房间
                var elementCol = elementRow.insertCell(elementRow.cells.length);
                elementCol.width="10%";
                elementCol.align="center";
               
                elementCol.innerHTML=userID.replace('#','号楼')+"室";
                //开始时间

                var elementCol = elementRow.insertCell(elementRow.cells.length);
               // elementCol.setAttribute("style","width: 10%;");
                elementCol.width="10%";
                elementCol.align="center";
                elementCol.innerHTML=beginTime;
                //结束时间

                var elementCol = elementRow.insertCell(elementRow.cells.length);
               // elementCol.setAttribute("style","width: 10%;");
                elementCol.width="10%";
                elementCol.align="center";
                //elementCol.className = "GridView_item_left"; 
                elementCol.innerHTML=endTime;
                 //报警地点

                var elementCol = elementRow.insertCell(elementRow.cells.length);
                elementCol.width="10%";
                elementCol.align="center";
                elementCol.innerHTML=zoneScript== null?"":zoneScript;
                 //报警类型

                var elementCol = elementRow.insertCell(elementRow.cells.length);
                elementCol.width="10%";
                elementCol.align="center";
                elementCol.innerHTML=zoneType== null?"":zoneType;
                //事件

                var elementCol = elementRow.insertCell(elementRow.cells.length);
                elementCol.width="30%";
          
                elementCol.align="left"; 
                elementCol.innerHTML=comments== null?"":comments;
     
                //发送
                var elementCol = elementRow.insertCell(elementRow.cells.length);
               // elementCol.setAttribute("style","width: 5%;");
                elementCol.width="10%";
                elementCol.align="center";

                elementLink = document.createElement("A");
                elementLink.setAttribute("id", "hre" + i);                
                elementLink.setAttribute("href", "#");  
      
                elementLink.onclick=function(){
                if(confirm("是否发送？"))
                {
                    if (!theForm.onsubmit || (theForm.onsubmit() != false))
                    {
                        window.document.getElementById('<%=hidSendFlg.ClientID%>').value="TRUE";
                        window.document.getElementById('<%=hidUserID.ClientID%>').value=userID;
                        window.document.getElementById('<%=hidBeginTime.ClientID%>').value=beginTime;
                        window.document.getElementById('<%=hidComments.ClientID%>').value=comments;
                        
                         theForm.submit();
                    }
                    
                }
                };
                
                var elementLinkImg = document.createElement("IMG");
                elementLinkImg.setAttribute("id", "imgd" + i);                
                elementLinkImg.setAttribute("src", "../../images/edit.jpg");     
                elementLinkImg.border=0;
                
                elementLink.appendChild(elementLinkImg);

                elementCol.appendChild(elementLink);
                
                //反馈
                var elementCol = elementRow.insertCell(elementRow.cells.length);
                elementCol.width="10%";
                elementCol.align="center";
                var imgHtml="<img border='0'  src='../../images/info.gif' name='b1'  onClick='popupAlarm("+receiveNo+")'  />"
                elementCol.innerHTML=imgHtml;
            }
        }
        function popupAlarm(receiveNo)
        {
            window.open('../Search/AlarmFeedbackForm.aspx?RECEIVE_NO='+receiveNo,'AlarmFeedbackForm','height=411,width=900,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes');
        }

//切换报警信息类型
function changeToWireless()
{

document.getElementById("alarmDiv").style.display="none";
document.getElementById("alarmTableDiv").style.display="none";

document.getElementById("wirelessDiv").style.display="block";
document.getElementById("wirelessTableDiv").style.display="block";

document.getElementById("wirelessHisDiv").style.display="block";
document.getElementById("wirelessHisTableDiv").style.display="block";

getWirelessMessage();
getWirelessHisMessage();
}


function changeToAlarm()
{

document.getElementById("wirelessTableDiv").style.display="none";
document.getElementById("wirelessDiv").style.display="none";
document.getElementById("wirelessHisDiv").style.display="none";
document.getElementById("wirelessHisTableDiv").style.display="none";

document.getElementById("alarmDiv").style.display="block";
document.getElementById("alarmTableDiv").style.display="block";

getNewMessage();
}

function getWirelessMessage() {
            var e;            
            try {
                CommonAjaxUtils.FindWireless(bindCallBackResult_WirelessMessage);
                
		    }
            catch(e) {
                alert('getWirelessMessage: '+e.message);
            }
        }
        
        
function getWirelessHisMessage() {
            var e;            
            try {

                CommonAjaxUtils.FindWirelessHis(bindCallBackResult_WirelessHisMessage);
		    }
            catch(e) {
                alert('getWirelessMessage: '+e.message);
            }
        }
  
        function bindCallBackResult_WirelessMessage(response) {    
            try {              
                var targetData = response.value;               		    		        		        		        
                var msgTable;
           
    	        // refresh top tool bar
	            if (targetData != null 
	                && typeof(targetData) == "object" 
	                ) {
	           
	                 msgTable = document.getElementById("wirelessTable");
	                if(targetData.length > 0)
	                {
	             
	                    
	                    bindWirelessMsgTable(msgTable,targetData);
                        
	                }
	                else
	                {
	                
	                    if(msgTable != null)
			            {
    			       
			              for(var i=msgTable.rows.length - 1; i >= 0; i--) {				
			                msgTable.deleteRow(i);				
		                    }  
			            }
	                }
	     page_TimerID = setTimeout("getWirelessMessage()", 2000);  
	            }
	
	        }
            catch(e) {
                alert('bindCallBackResult_WirelessMessage'+e.message);
            }
        }
        
        //历史无线
        function bindCallBackResult_WirelessHisMessage(response) {    
            try {              
                var targetData = response.value;               		    		        		        		        
                var msgTable;
           
    	        // refresh top tool bar
	            if (targetData != null 
	                && typeof(targetData) == "object" 
	                ) {
	           
	                 msgTable = document.getElementById("wirelessHisTable");
	                if(targetData.length > 0)
	                {
	             
	                    
	                    bindWirelessMsgTable(msgTable,targetData);
                        
	                }
	                else
	                {
	                
	                    if(msgTable != null)
			            {
    			       
			              for(var i=msgTable.rows.length - 1; i >= 0; i--) {				
			                msgTable.deleteRow(i);				
		                    }  
			            }
	                }
	     page_TimerID = setTimeout("getWirelessHisMessage()", 2000);  
	            }
	
	        }
            catch(e) {
                alert('bindCallBackResult_WirelessMessage'+e.message);
            }
        }
        //无线消息table
         function bindWirelessMsgTable(objTable,objData) { 
            if (objData == null || objTable == null)
             { 
            	
		    
                return; 
             }
                  										
		    // del rows                        
		    for(var i=objTable.rows.length - 1; i >= 0; i--) {				
			    objTable.deleteRow(i);				
		    }

            for(var i = 0; i < objData.length; i++) {           
                var userID = objData[i].MemberId;
                   
                var beginTime = objData[i].Address;
                var endTime = objData[i].DateTxt;

                
                var elementRow = objTable.insertRow(objTable.rows.length);
		        elementRow.id = "msgRow" + i;
		        
		        //房间
                var elementCol = elementRow.insertCell(elementRow.cells.length);
                elementCol.width="30%";
                elementCol.align="center";
               
                elementCol.innerHTML=userID;
                //开始时间

                var elementCol = elementRow.insertCell(elementRow.cells.length);
               // elementCol.setAttribute("style","width: 10%;");
                elementCol.width="30%";
                elementCol.align="center";
                elementCol.innerHTML=beginTime;
                //结束时间

                var elementCol = elementRow.insertCell(elementRow.cells.length);
               // elementCol.setAttribute("style","width: 10%;");
                elementCol.width="40%";
                elementCol.align="center";
                //elementCol.className = "GridView_item_left"; 
                elementCol.innerHTML=endTime;
              
            }
        }
        
    </script>

    <script language="javascript">
    (new TitleBar('MonitorBar', '社区监控中心')).showBar();
    </script>

    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td id="map1" oncontextmenu="return false" align="center" valign="top" style="background: #eaf4e9"
                width="695" height="300">
                <div id="mapSection" style="overflow: hidden; width: 695px; height: 300px; background-image: url(../../images/map/map_1_1.jpg)"
                    style="display: none" border="0" onmousedown="if(event.button==2){outerMap();}">
                </div>
                <img id="mapFull" src="../../images/map/map.jpg" style="display: block" border="0"
                    usemap="#Map" /><map name="Map" id="Map">
                        <area shape="rect" coords="0,0,156.375,67.56" href="javascript:entryMap(1,1)" />
                        <area shape="rect" coords="156.375,0,312.75,67.56" href="javascript:entryMap(1,2)" />
                        <area shape="rect" coords="312.75,0,360,67.56" href="javascript:entryMap(1,3)" />
                        <area shape="rect" coords="0,67.56,156.375,135.12" href="javascript:entryMap(2,1)" />
                        <area shape="rect" coords="156.375,67.56,312.75,135.12" href="javascript:entryMap(2,2)" />
                        <area shape="rect" coords="312.75,67.56,360,135.12" href="javascript:entryMap(2,3)" />
                        <area shape="rect" coords="0,135.12,156.375,202.68" href="javascript:entryMap(3,1)" />
                        <area shape="rect" coords="156.375,135.12,312.75,202.68" href="javascript:entryMap(3,2)" />
                        <area shape="rect" coords="312.75,135.12,360,202.68" href="javascript:entryMap(3,3)" />
                        <area shape="rect" coords="0,202.68,156.375,270.24" href="javascript:entryMap(4,1)" />
                        <area shape="rect" coords="156.375,202.68,312.75,270.24" href="javascript:entryMap(4,2)" />
                        <area shape="rect" coords="312.75,202.68,360,270.24" href="javascript:entryMap(4,3)" />
                        <area shape="rect" coords="0,270.24,156.375,300" href="javascript:entryMap(5,1)" />
                        <area shape="rect" coords="156.375,270.24,312.75,300" href="javascript:entryMap(5,2)" />
                        <area shape="rect" coords="312.75,270.24,360,300" href="javascript:entryMap(5,3)" />
                    </map>
            </td>
            <td valign="top" style="background: #ffffff">
                <object id="NetClientX" name="NetClientX" classid="CLSID:DF96697B-C91A-4DF6-8EA1-DC0CF61FCF42"
                    align="center" hspace="0" vspace="0" height="310" width="360" viewastext>
                </object>
                <!-- img src="../../images/map/monitor.jpg" onclick="showMonitor()"/ -->
                <br />
                &nbsp; 切换摄像头:
                <select id="monitorAddress" onchange="onMonitorChange()">
                    <option value=""></option>
                    <asp:Repeater ID="cctvRepeater" runat="server">
                        <ItemTemplate>
                            <option value="<%# ((CctvBean)Container.DataItem).IpAddress %>,<%# ((CctvBean)Container.DataItem).Channel %>,<%# ((CctvBean)Container.DataItem).Row %>,<%# ((CctvBean)Container.DataItem).Col %>">
                                <%# ((CctvBean)Container.DataItem).Name %>
                            </option>
                        </ItemTemplate>
                    </asp:Repeater>
                </select>
                <asp:DropDownList ID="DrpGroup" runat="server" DataTextField="GroupName" DataValueField="GroupId" onchange="popup(this.value)">
                </asp:DropDownList>

                <input type="button" onclick="showMonitor()" value="放大" />
            </td>
        </tr>
    </table>
    
    <table border="0" cellpadding="0" cellspacing="0" style="width:330px">
        <tr>
            <td style="background-image:url('../../images/button1.jpg');padding-left: 30px;width:110px;height:30px"><a href="#" onclick="changeToAlarm()">红外报警</a></td>
            <td style="background-image:url('../../images/button2.jpg');padding-left: 30px;width:110px;height:30px"><a href="#" onclick="changeToWireless()">无线定位</a></td>
            <td style="background-image:url('../../images/button2.jpg');padding-left: 30px;width:110px;height:30px">报警历史</td>
        </tr>
    </table>

    <script language="javascript">
    (new TitleBar('AlarmResolveBar', '报警处理')).showBar();
    </script>

    <!--
<table id="alarmTable" border="0" cellpadding="0" cellspacing="0" width="100%" style="background:ffffff; color: #000000">
<tr>
        <td class="GridView_head_grayblue">
            时间
        </td>

        <td class="GridView_head_grayblue">
            地点
        </td>

        <td class="GridView_head_grayblue">
            会员编号
        </td>
        
        <td class="GridView_head_grayblue">
            会员姓名
        </td>
        
        <td class="GridView_head_grayblue">
            详细
        </td>
    </tr>
    <tr>
        <td align="center">
            2008/01/18 13:03
        </td>

        <td align="center">
            F2号楼
        </td>

        <td align="center">
            A00210001D1
        </td>
        
        <td align="center">
            陈老伯
        </td>
        
        <td align="center">
            详细
        </td>
    </tr>
    <tr>
        <td align="center">
            2008/01/18 13:03
        </td>

        <td align="center">
            F2号楼
        </td>

        <td align="center">
            A00210001D1
        </td>
        
        <td align="center">
            陈老伯
        </td>
        
        <td align="center">
            详细
        </td>
    </tr>
</table>
-->
    <div id="alarmDiv">
    <table class="GridView_table" cellspacing="0" id="Table1" border="0" style="width: 99%">
        <tr>
            <th class="GridView_head_grayblue" scope="col" style="width: 10%;">
                房间号</th>
            <th class="GridView_head_grayblue" scope="col" style="width: 10%;">
                开始时间</th>
            <th class="GridView_head_grayblue" scope="col" style="width: 10%;">
                结束时间</th>
            <th class="GridView_head_grayblue" scope="col" style="width: 10%;">
                报警地点</th>
            <th class="GridView_head_grayblue" scope="col" style="width: 10%;">
                报警类型</th>
            <th class="GridView_head_grayblue" scope="col" style="width: 30%;">
                事件</th>
            <th class="GridView_head_grayblue" scope="col" style="width: 10%;">
                发送</th>
            <th class="GridView_head_grayblue" scope="col" style="width: 10%;">
                反馈</th>
        </tr>
        
    </table>
    </div>
   
    <div id="alarmTableDiv" style="width: 99%; height: 60px; overflow: auto">
        <table id="alarmTable" style="width: 99%">
        </table>
    </div>
    
     <div id="wirelessDiv" style="display:none">
    <table class="GridView_table" cellspacing="0" id="Table2" border="0" style="width: 99%">
        <tr>
            <th class="GridView_head_grayblue" scope="col" style="width: 30%;">
                会员</th>
            <th class="GridView_head_grayblue" scope="col" style="width: 30%;">
                地点</th>
            <th class="GridView_head_grayblue" scope="col" style="width: 40%;">
                发送时间</th>
            
        </tr>
        
    </table>
    </div>
    <div id="wirelessTableDiv"  style="width: 99%; height: 60px; overflow: auto; display:none">
        <table id="wirelessTable" style="width: 99%">
        </table>
    </div>
     <script language="javascript">
    (new TitleBar('AlarmResolveBar', '历史报警')).showBar();
    </script>
    <div id="wirelessHisDiv" style="display:none">
    <table class="GridView_table" cellspacing="0" id="Table3" border="0" style="width: 99%">
        <tr>
            <th class="GridView_head_grayblue" scope="col" style="width: 30%;">
                会员</th>
            <th class="GridView_head_grayblue" scope="col" style="width: 30%;">
                地点</th>
            <th class="GridView_head_grayblue" scope="col" style="width: 40%;">
                发送时间</th>
            
        </tr>
        
    </table>
    </div>
    <div id="wirelessHisTableDiv"  style="width: 99%; height: 120px; overflow: auto; display:none">
        <table id="wirelessHisTable" style="width: 99%">
        </table>
    </div>

    <asp:HiddenField ID="hidSendFlg" runat="server" Value="FALSE" />
    <asp:HiddenField ID="hidUserID" runat="server" />
    <asp:HiddenField ID="hidBeginTime" runat="server" />
    <asp:HiddenField ID="hidComments" runat="server" />
</asp:Content>
